<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['系统配置','重量优化-圆通']" icon="fa fa-cog" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<div class="s_page_wrap">
		<div class="page-header">
			<h1 class="page_detail_title">CSV文件上传-只替换重量数据</h1>
		</div>
		<div class="row uploadWarp">
			<form id="pathCorrectionFrom" name="pathCorrection" (ngSubmit)="onSubmit()" class="form-horizontal" novalidate="novalidate" [saBootstrapValidator]="validatorOptions">
				<div class="form-group" style="margin: 0;padding: 12px 0;">
					<label class="control-label col-sm-1 no-padding-right" for="imgFile">csv文件</label>
					<div class="col-sm-10 no-padding">
						<div class="clearfix">
							<input class="form-control fileInp" (change)="fileChange($event.target.files)" name="fileToUpload" type="file" placeholder="csv文件..." />
							<div class="inpWarp">{{fileName}}</div>
						</div>
					</div>
				</div>
				<div class="form-group" style="padding: 12px 0;margin: 0;" *ngIf="resultMessage">
					<label class="control-label col-sm-1 no-padding-right" for="imgFile" style="text-align: left;">上传结果</label>
					<div class="col-sm-10 no-padding">
						<div class="clearfix">
							<div class="inpWarp" style="border: none;">{{resultMessage}}</div>
						</div>
					</div>
				</div>
				<div class="center" style="padding: 12px 0;">
					<button type="submit" class="btn btn-primary">上传</button>
				</div>
			</form>
		</div>
	</div>
</div>
<style type="text/css">
	.uploadWarp{
		background: #fff;
		border-radius: 4px;
		padding-bottom: 30px;
		margin-top: 20px;
	}
	.clearfix {
		position: relative;
	}
	.fileInp {
		position: absolute;
		opacity: 0;
	}
	.inpWarp {
		height: 32px;
		line-height: 32px;
		background: #fff;
		padding: 0 12px;
		border: 1px solid #ccc;
	}
</style>